from django.urls import re_path
from . import views

urlpatterns = [
    # 城区列表
    re_path('^areas$', views.AreasListView.as_view()),

    # 房源图片
    re_path('^houses/(?P<house_id>\d+)/images$', views.HouseImageView.as_view()),

    # 房屋详情
    re_path('^houses/(?P<house_id>\d+)$', views.HouseView.as_view()),

    # 首页房屋推荐
    re_path('^houses/index', views.HousesIndex.as_view()),

    # 发布房源&搜索
    re_path('^houses$', views.ReleaseHouse.as_view()),

    # 我的房屋列表
    re_path('^user/houses$', views.MyHouse.as_view()),

]